package leetcode;

import sun.security.x509.IPAddressName;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Random;

/**
 * @Author Gan
 * @Date 2021/5/21 10:59
 * @Description:
 */
public class Junit01 {
    public static void main(String[] args) throws UnknownHostException {
        /*InetAddress host = InetAddress.getLocalHost();
        System.out.println("主机名："+host.getHostName());
        System.out.println("主机局域网地址："+host.getHostAddress());*/
        for (int i1 = 0; i1 < 10; i1++) {
            int i = new Random().nextInt(3);
            System.out.println(i);
        }
    }
}
